import re
from django.utils.translation import gettext_lazy as _
from django.core.exceptions import ValidationError


def validate_phone(value):
    number_re = re.compile(r'^1[3-9]\d{9}$')
    if not number_re.search(value):
        raise ValidationError(_(f"{value} is Incorrect"))
